<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<form th:action="/login" method="post">
<div>
    <label>用户名</label>
    <input name="mail" placeholder="请输入邮箱">
</div>
<div>
    <label>密码</label>
    <input name="pass" placeholder="请输入密码">
</div>
    <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
    <button type="submit">登录</button>
</form>
</body>
</html>